package com.lucy.flow.dao;

import com.lucy.flow.domain.entity.FlowWork;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface FlowWorkDAO extends JpaRepository<FlowWork,String> {
    /**
     * 根据业务ID 查询
     * @param bizId 业务ID
     * @return 流程实例
     */
    Optional<FlowWork> findByBizId(String bizId);


}
